package com.my.study.dao;

import com.my.study.entity.MyUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author Carlos
 * @version 1.0.0
 * @date 2022/1/7 8:37
 */
@Mapper
@Repository
public interface MyUserDao {

    /**
     * 根据用户名查询用户信息
     *
     * @param name:   用户名
     * @return MyUserEntity
     * @author Carlos
     * @date 2022/1/7 8:51
     */
    MyUserEntity findByName(String name);

    /**
     * 注册
     *
     * @param myUser:
     * @return void
     * @author Carlos
     * @date 2022/1/7 21:58
     */
    void registerUser(MyUserEntity myUser);

    MyUserEntity getUser(Integer userId);
}
